package com.starry.androidmvvmexample.ui.dashboard

import androidx.databinding.library.baseAdapters.BR
import com.starry.androidmvvmexample.base.BaseVMFragment
import com.starry.androidmvvmexample.databinding.FragmentDashboardBinding

class DashboardFragment : BaseVMFragment<FragmentDashboardBinding, DashboardViewModel>(
    DashboardViewModel::class.java,
    FragmentDashboardBinding::inflate
) {
    override fun initViewObservable() {
        mViewModel.text.observe(viewLifecycleOwner) {
            mBinding.textDashboard.text = it
        }
    }
    override fun initVariableId() = BR.viewModel
}